import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
		openId:'',
		userInfo:'{}',
		contentInfo:'{}',
		initOrder:'{}',
		Authorization:'',
		isSetpassword:false
	},
    mutations: {
		CHANGE_OPENID(state,data){
			state.openId = data
		},
		CHANGE_INFO(state,data){
			state.userInfo = data
		},
		CHANGE_CONTENTINFO(state,data){
			state.contentInfo = data
		},
		CHANGE_INITORDER(state,data){
			state.initOrder = data
		},
		UPDATE_AUTH(state,data){
			state.Authorization = data
		},
		changeStatus(state,data){
			state.isSetpassword = data
		}
	},
    actions: {}
})
export default store